
// 职位
var oPosts_input = document.querySelector("#posts_input");
var oPosts_list = document.querySelector(".posts_list");
var oPosts_list_p = document.querySelectorAll(".posts_list p");
// console.log(oPosts_input)
// 鼠标移入
oPosts_input.addEventListener("mouseover", mouseoverFn2);
function mouseoverFn2() {
    oPosts_input.style.borderColor = "#2561ef";
    oPosts_input.style.cursor = "pointer";
}
// 鼠标移出
oPosts_input.addEventListener("mouseout", mouseoutFn2);
function mouseoutFn2() {
    oPosts_input.style.borderColor = " #999999";
}
// 输入框的点击事件
oPosts_input.addEventListener("click", openListFn2);
function openListFn2() {
    oPosts_list.style.display = "block";
}

for (var i = 0; i < oPosts_list_p.length; i++) {
    oPosts_list_p[i].onclick = function(){
        oPosts_input.value = this.innerText;
        oPosts_list.style.display = "none";
    }
  
  }

// 员工类型
var oEmployee_type_input = document.querySelector("#employee_type_input");
var oEmployee_type_list = document.querySelector(".employee_type_list");
var oEmployee_type_list_p = document.querySelectorAll(".employee_type_list p");

// 鼠标移入
oEmployee_type_input.addEventListener("mouseover", mouseoverFn);
function mouseoverFn() {
  oEmployee_type_input.style.borderColor = "#2561ef";
  oEmployee_type_input.style.cursor = "pointer";
}
// 鼠标移出
oEmployee_type_input.addEventListener("mouseout", mouseoutFn);
function mouseoutFn() {
  oEmployee_type_input.style.borderColor = " #999999";
}

// 输入框的点击事件
oEmployee_type_input.addEventListener("click", openListFn);
function openListFn() {
  oEmployee_type_list.style.display = "block";
}

for (var i = 0; i < oEmployee_type_list_p.length; i++) {
  oEmployee_type_list_p[i].onclick = function(){
    oEmployee_type_input.value = this.innerText;
    oEmployee_type_list.style.display = "none";
  }
}


// 调岗类型
var oMobilize_type_input = document.querySelector("#mobilize_type_input");
var oMobilize_type_list = document.querySelector(".mobilize_type_list");
var oMobilize_type_list_p = document.querySelectorAll(".mobilize_type_list p");

// 鼠标移入
oMobilize_type_input.addEventListener("mouseover", mouseoverFn3);
function mouseoverFn3() {
    oMobilize_type_input.style.borderColor = "#2561ef";
    oMobilize_type_input.style.cursor = "pointer";
}
// 鼠标移出
oMobilize_type_input.addEventListener("mouseout", mouseoutFn3);
function mouseoutFn3() {
  oMobilize_type_input.style.borderColor = " #999999";
}

// 输入框的点击事件
oMobilize_type_input.addEventListener("click", openListFn3);
function openListFn3() {
  oMobilize_type_list.style.display = "block";
}

for (var i = 0; i < oMobilize_type_list_p.length; i++) {
  oMobilize_type_list_p[i].onclick = function(){
    oMobilize_type_input.value = this.innerText;
    oMobilize_type_list.style.display = "none";
  }
}
